<template>
	<div class="vuex">
		<h1 style="color: red;">
			vuex{{$store.state.count}}
			</h1>
		<button @click="increment">增加</button>
		<button @click="decrement">删减</button>
	</div>
</template>

<script>
	import { mapActions } from 'vuex'
	export default {
		methods:mapActions([
			'increment',
			'decrement'
		])
	}
</script>

<style>
</style>
